package tds.model8.version1;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Proxy
 * @Description TODO（代理类。帮忙送礼物。)
 * @author tds
 * @Date 2019/2/20 11:27
 * @version 1.0.0
 */
public class Proxy implements GiveGift {
    private Pursuiter gg;

    public Proxy(Pursuiter gg) {
        this.gg = gg;
    }

    @Override
    public void giveDoll() {
        gg.giveDoll();
        System.out.print(",小明让我替他送的\n\n");
    }

    @Override
    public void giveFlower() {
        gg.giveFlower();
        System.out.print(",小明让我替他送的\n\n");
    }

    @Override
    public void giveChocolate() {
        gg.giveChocolate();
        System.out.print(",小明让我替他送的\n\n");
    }
}
